package org.dromara.pe.domain.bo;

import cn.hutool.core.date.DateTime;
import org.dromara.pe.domain.TaskInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 体测任务管理业务对象 phy_pe_task_info
 *
 * @author Lion Li
 * @date 2024-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TaskInfo.class, reverseConvertGenerate = false)
public class TaskInfoBo extends BaseEntity {

    /**
     * 逻辑主键
     */
    @NotNull(message = "逻辑主键不能为空", groups = { EditGroup.class })
    private Long taskId;

    /**
     * 计划名称
     */
//    @NotBlank(message = "计划名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 开始时间
     */
//    @NotBlank(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startDate;

    /**
     * 结束时间
     */
//    @NotBlank(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endDate;

    /**
     * 过期限制  0 限制  1未限制
     */
//    @NotBlank(message = "过期限制  0 限制  1未限制不能为空", groups = { AddGroup.class, EditGroup.class })
    private String expireLimit;

    /**
     * 说明
     */
//    @NotBlank(message = "说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String notes;

    /**
     * 负责老师id
     */
//    @NotNull(message = "负责老师id不能为空", groups = {  EditGroup.class })
    private Long teacherId;

    /**
     * 负责老师名称
     */
//    @NotBlank(message = "负责老师名称不能为空", groups = {  EditGroup.class })
    private String teacherName;

    /**
     * 权限范围
     */
//    @NotBlank(message = "权限范围不能为空", groups = {EditGroup.class })
    private String rangeInfo;

    /**
     * 是否启用  0 启用  1不启用
     */
//    @NotBlank(message = "是否启用  0 启用  1不启用不能为空", groups = { EditGroup.class })
    private String isEnable;

    private String semester;

    private String academicYear;

    private Long taskType;

    private Long taskStatus;

    private List<Long> taskStatusList;



}
